package com.ruoyi.blog.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Article {
    private String id;
    private String articleName;
    private String articleContent;

    @TableLogic(value = "0", delval = "1")
    private Integer articleStatus;
    private Date createDate;
    private String createBy;
    private String isHome;
    private Date updateDate;
    private String updateBy;
    private String readCount;//阅读数
    private String commentCount;//评论数
    private String commendCount;//点赞数
    private String username;

    @TableField(exist = false)
    private String num;

    @TableField(exist = false)
    private List<ArticleComment> articleComment;
}
